#include "Serialization.h"
#include <string>


class RPCSerialization: public Serialization {
private:
    union Uint32ToUint8
    {
        uint32_t m_uint32;
        uint8_t m_uint8[4]; 
    };
    
private:
    std::string m_strArgs_;
    uint32_t m_length_;
    uint32_t m_arg_int0_;
    uint32_t m_arg_int1_;
public:
 vector<uint8_t> serial() override;
 void deserial(const vector<uint8_t>&) override;
 void setArgInt0(const uint32_t);
 void setArgInt1(const uint32_t);
 void setArgStr(const std::string&, const size_t);

 uint32_t getArgInt0( );
 uint32_t getArgInt1( );
 uint32_t getLength( );
 std::string getArgStr();

};